/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Agency.models;
/**p
 *
 * @author wangari
 */
public class HouseModel {
    String houseType;
    String houseLocation;
    double houseRent;
    String plotNum;
    
 /**
  * Constructor that takes  a house type , house location, house rent  and the house plot number
  * @param hseType
  * @param hseLoc
  * @param theRent
  * @param thePlotNum
  */   
    public HouseModel(String hseType, String hseLoc, double theRent, String thePlotNum){
       houseType= hseType;
       houseLocation=hseLoc;
       houseRent=theRent;
       plotNum=thePlotNum;
    }
    /**
     * getting the house type
     * @return  houseType
     */
 public String getHseType(){
     return houseType;
 }
 /**
  * getting the  town location of the house
  * @return houseLocation
  */
 public String getHseLocation(){
     return houseLocation;
 }
 /**
  * getting the house rent
  * @return houseRent
  */
 public double getHseRent(){
     return houseRent;
 }
 /**
  * getting the Plot number
  * @return plotNum
  */
 public String  getPlotNum(){
     return plotNum;
 } 
 /**
  * returning the house type, house location, house rent and plot number as a string
  * @return (houseType+ " "+houseLocation+" "+houseRent+" "+plotNum)
  */
 public String toString(){
     return (houseType+ " "+houseLocation+" "+houseRent+" "+plotNum);
 }
}
